﻿<form action="/PublicHandlers/Handler2.ashx" method="post">
<p>
    客户名称:
    <input type="text" name="CustomerName" style="width: 300px" /></p>
<p>
    客户电话:
    <input type="text" name="CustomerTel" style="width: 300px" /></p>
<p>
    <input type="submit" name="submit" id="btnId" value="保存" />
    <input type="submit" name="submit" value="查询" />
</p>
</form>
<script>
    $(function () {
        //alert(1);
    });

    $(function () {
        $("#btnId").click(function () {
            $('form').ajaxSubmit({
                success: function (responseText) {
                    alert(responseText);
                }
            });
        });
    });

</script>